package com.sprouting.ops.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sprouting.ops.annotations.invoke.CheckIsNullOrEmpty;
import com.sprouting.ops.annotations.invoke.CheckLength;
import com.sprouting.ops.annotations.invoke.CheckNotNull;
import com.sprouting.ops.interfaces.AddGroup;
import com.sprouting.ops.interfaces.UpdGroup;
import lombok.Data;

/**
 * 厂商现场人员表(OpsThirdPartySiteUser)(OPS_THIRD_PARTY_SITE_USER) 表实体类
 *
 * @author ：lx（长沙麓谷）
 * @date 创建时间：2025-08-03 10:28:49
 */
@Data
@TableName("ops_third_party_site_user")
public class OpsThirdPartySiteUser extends BaseModel {

    /**
     * 主键
     */
    @CheckNotNull(message = "非法ID", groups = UpdGroup.class)
    @CheckIsNullOrEmpty(message = "无效ID", groups = AddGroup.class)
    @TableId
    private String id;
    /**
     * 厂商所属人员id
     * @see OpsThirdPartyUser#getId()
     */
    @CheckNotNull(message = "请选择所属人员")
    private String thirdPartyUserId;
    /**
     * 现场id
     * @see OpsSite#getId()
     */
    @CheckNotNull(message = "请选择现场")
    private String siteId;
    /**
     * 现场项目角色
     */
    @CheckLength(max = 100, message = "项目角色超过长度限制")
    private String role;
    /**
     * 详情
     */
    @CheckLength(max = 1000, message = "详情超过长度限制")
    private String description;

}
